package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);


    void insert(Bed bed);

    @Select("SELECT * FROM `bed` WHERE `id` = #{id}")
    Bed getBedById(@Param("id") Long id);


    void updateBed(Bed bean);

    void deleteBed(Long id);
}

